<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="cutProcessList.title"/></title>

    <meta name="heading" content="<fmt:message key='formProcessDressMakerList.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>

</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpProcessDressMakerList.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editProcessDressmaker.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<display:table name="processDressmakerList" class="table" requestURI="" id="processDressmakerList_1" export="true"
               list="processDressmakerList_1" pagesize="25">
    <display:column property="id" sortable="true" href="addPantDetailProcessDressmaker.html"
        paramId="id" paramProperty="id" titleKey="cutProcess.id"/>
    <display:column property="initDate" sortable="true" titleKey="cutProcess.initDate"/>
    <display:column property="endDate" sortable="true" titleKey="cutProcess.endDate"/>
    <display:column property="employee.fullName" sortable="true" titleKey="employee.cutter"/>
    <display:column sortable="false" titleKey="cutProcess.delete" style="width: 10%"
                    autolink="true" media="html" href="deleteProcessDressmaker.html" paramId="id" paramProperty="id">
        <c:if test="${processDressmakerList_1.deleted }">
            <img src="<c:url value="/images/trash.png" />" alt="Delete" />
         </c:if>
         <c:if test="${!processDressmakerList_1.deleted }">
            <img src="<c:url value="/images/alert.gif" />" alt="Delete" />
         </c:if>
    </display:column>

    <display:setProperty name="paging.banner.item_name" value="cut process"/>
    <display:setProperty name="paging.banner.items_name" value="cut processes"/>

    <display:setProperty name="export.excel.filename" value="CutProcess List.xls"/>
    <display:setProperty name="export.csv.filename" value="CutProcess List.csv"/>
    <display:setProperty name="export.pdf.filename" value="CutProcess List.pdf"/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("cutProcessList");
</script>
